#ifndef _TREE_MANAGER_H_
#define _TREE_MANAGER_H_
#include "TreeNode.h"
class TreeManager
{
private:
	TreeNode* root;
public:
	TreeManager(): root(NULL){}
	TreeManager(TreeNode* mainNode): root(mainNode){}
	TreeManager(const string& path);
	~TreeManager();
	void AddNode(const string &strType, const string &strValue, TreeNode* parentLink, unsigned numChildrenLinks);
	bool BuildTree();
	bool Save(const string& path) const;
	bool Load(const string& path);
};
#endif